package com.ruoyi.system.domain;

import java.util.List;
import java.util.Objects;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题库管理对象 t_pool
 * 
 * @author ruoyi
 * @date 2023-01-12
 */
public class Pool extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题库id */
    private Long poolId;

    /** 题库名称 */
    @Excel(name = "题库名称")
    private String poolName;

    /** 题目管理信息 */
    private List<Topic> topicList;

    /** 是不是VIP题库 */
    private String isVip;

    /** 是否展示 */
    private String isShow;

    public void setPoolId(Long poolId)
    {
        this.poolId = poolId;
    }

    public Long getPoolId() 
    {
        return poolId;
    }
    public void setPoolName(String poolName) 
    {
        this.poolName = poolName;
    }

    public String getPoolName() 
    {
        return poolName;
    }

    public List<Topic> getTopicList()
    {
        return topicList;
    }

    public void setTopicList(List<Topic> topicList)
    {
        this.topicList = topicList;
    }

    public String getIsVip() {
        return isVip;
    }

    public void setIsVip(String isVip) {
        this.isVip = isVip;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    @Override
    public String toString() {
        return "Pool{" +
                "poolId=" + poolId +
                ", poolName='" + poolName + '\'' +
                ", topicList=" + topicList +
                ", isVip='" + isVip + '\'' +
                ", isShow='" + isShow + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Pool pool = (Pool) o;
        return poolId.equals(pool.poolId) && Objects.equals(poolName, pool.poolName) && Objects.equals(topicList, pool.topicList) && Objects.equals(isVip, pool.isVip) && Objects.equals(isShow, pool.isShow);
    }

    @Override
    public int hashCode() {
        return Objects.hash(poolId, poolName, topicList, isVip, isShow);
    }
}
